<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<aside th:fragment="left_navigation_bar_style" >
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <input id="user_type" th:value="${session.user.userType}" type="hidden" class="form-control">

            <ul class="nav" id="side-menu">
                <li class="nav-header">
<!--
                    <div class="dropdown profile-element">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:15px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">自动气象站数据实时信息发布系统</strong>
                                    </span>
                                </span>
                        </a>
                    </div>
-->

                    <div class="dropdown profile-element">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear">
                                <i class="fa fa-area-chart block m-t-xs" style="font-size:20px;"></i>

                                <span class="block m-t-xs" style="font-size:20px;">
                                    <strong class="font-bold">自动气象站数据</strong>
                                </span>
                                <span class="block m-t-xs" style="font-size:20px;">
                                    <strong class="font-bold">实时信息发布系统</strong>
                                </span>
                            </span>
                        </a>
                    </div>
                    <div class="logo-element">hAdmin
                    </div>
                </li>
                <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                    <span class="ng-scope">分类</span>
                </li>
                <li>
                    <a class="J_menuItem" href="/login">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">主页</span>
                    </a>
                </li>
                <li id="admin_manager" class="hidden">
                    <a href="#">
                        <i class="fa fa-users"></i>
                        <span class="nav-label">管理员管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/user/toList">管理员信息管理</a>
                        </li>
                    </ul>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/userLog/toUserLogList">用户日志</a>
                        </li>
                    </ul>

                </li>

                <li>
                    <a href="#">
                        <i class="fa fa fa-cloud"></i>
                        <span class="nav-label">气象数据管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/meteorologicalData/toAdd">发布气象数据</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/meteorologicalData/toList">气象数据管理</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa fa-gear"></i>
                        <span class="nav-label">系统管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/user/toUserUpdate">修改用户信息</a>
                        </li>
                    </ul>
                </li>

            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->


    <script>
        $(function(){
            // 管理员可以看到 管理员管理 模块
           let userType = $("#user_type").val();
           if (userType == 1 || userType == "1"){
               $("#admin_manager").removeClass("hidden");
           }
        });

    </script>

</aside>
</html>



